package com.cell.pojo.DTO.order;

import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

@Data
public class CommitOrderDTO {
    @NotNull(message = "卖方id不能为空")
    Long salId;
    @NotBlank(message = "物品名称不能为空")
    String name;
    @NotBlank(message = "物品类型不能为空")
    String type;
    @NotNull(message = "物品重量不能为空")
    @Min(message = "重量必须为大于0的数字",value = 0)
    BigDecimal weight;
}
